<?php

namespace Mogod\Core\Orm;

/**
 *
 * Description of OrmWorkerStandart
 *
 * @author goorus, morph
 *
 */
class OrmWorkerStandart extends OrmWorkerAbstract
{

	/**
	 *
	 * @inject
	 * @var \Mogod\Core\DependencyInjection\ServiceManager
	 */
	protected $serviceManager;

	/**
	 *
	 * @var string
	 */
	protected $queryClass = 'Mogod\\Core\\Model\\ModelQuery';

	/**
	 * @inheritdoc
	 */
	public function get($modelName)
	{
		return $this->serviceManager->get($this->queryClass)
			->setModelName($modelName);

	}

}
